//
//  HomeTableViewController.swift
//  SinaWeibo
//
//  Created by 王鹏 on 16/4/14.
//  Copyright © 2016年 heihei. All rights reserved.
//

import UIKit
import AFNetworking
import SVProgressHUD


class HomeTableViewController: BaseTableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
 
        visitorLoginView?.setUIInfo(nil, title: "关注一些人,回这里看看有什么惊喜")
       
        
    }
    
    func demo() {
        let AFN = AFHTTPSessionManager()
        AFN.responseSerializer.acceptableContentTypes?.insert("text/html")
        SVProgressHUD.show()
        
        AFN.GET("http://www.weather.com.cn/data/sk/101010100.html", parameters: nil, success: { (task, result) -> Void in
            SVProgressHUD.dismiss()
            print(result)
            }) { (_, error) -> Void in
                SVProgressHUD.showErrorWithStatus("网络请求失败,网络君正在思考中")
        }
        
//        AFN.POST("http://www.weather.com.cn/data/sk/101010100.html", parameters: nil, success: { (task, result) -> Void in
//            
//            }) { (_, error) -> Void in
//                
//        }

    }
}
